package com.accgm.api.resources.user.message;

import java.util.HashMap;

import net.sf.json.JSONObject;

import org.restlet.Request;

import com.accgm.api.resources.base.BaseResource;

public class UploadDocumentResource extends BaseResource {

	@Override
	protected void initParams(Request request) {
		
	}

	@Override
	protected JSONObject getMethod(JSONObject json) {
		HashMap<String,String> data = new HashMap<String,String>();
		data.put("data_url", "http://112.74.185.9/"+fileName);
		json.put("data", data);
		return succRequest("上传成功",json);
	}

	@Override
	protected JSONObject postMethod(JSONObject json) {
		return this.getMethod(json);
	}

}
